<form method="post" action="<?php echo $this->url_index; ?>"  enctype="multipart/form-data">
<div class="widget-box">
	<div class="widget-title">
		<ul class="nav nav-tabs">
			<li class="active"><a data-toggle="tab" href="#tab1">Tổng quan</a></li>
			<li><a data-toggle="tab" href="#tab2">Cấu hình tham số</a></li>
			<li><a data-toggle="tab" href="#tab3">Cấu hình cache</a></li>
			<li><a data-toggle="tab" href="#tab4">Email</a></li>
			<li><a data-toggle="tab" href="#tab5">SEO</a></li>
		</ul>
	</div>
	<div class="widget-content tab-content">
		<div id="tab1" class="tab-pane active">
		<?php
				$confs = $config['home'];
				foreach($confs as $conf){
				?>
					<?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span6', @$conf->CONF_VALUE, 'text', ''); ?>
				<?php }?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
		</div>
		<div id="tab2" class="tab-pane">
		<?php
		$confs = $config['num'];
		if(count($confs)>0)
		foreach($confs as $conf){
		?><?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span2', @$conf->CONF_VALUE, 'text', ''); ?>
		<?php }?>
		<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
				</div>
		<div id="tab3" class="tab-pane"><?php
				$confs = @$config['cache'];
				if(count($confs)>0)
				foreach($confs as $conf){
				?>
				 <?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span2', @$conf->CONF_VALUE, 'text', ''); ?> 
				<?php }?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
				</div>
		<div id="tab4" class="tab-pane">
		<?php
				$confs = $config['email'];
				if(count($confs)>0)
				foreach($confs as $conf){
				?>
					 <?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span6', @$conf->CONF_VALUE, 'text', ''); ?>
				<?php }?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
				</div>
				<?php /*
	<div id="tab5" class="tab-pane">
		<?php
				$confs = @$config['social'];
				if(count($confs)>0)
				foreach($confs as $conf){
				?>
					 <?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span6', @$conf->CONF_VALUE, 'text', ''); ?>
				<?php }?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
				</div>
				*/?>
		<div id="tab5" class="tab-pane">
			<?php
				$confs = @$config['seo'];
				if(count($confs)>0)
				foreach($confs as $conf){
				?>
				<?php echo $this->atheme->group_input2('conf['.$conf->CONF_CODE.']', $conf->CONF_TITLE.': ', '', 'span6', @$conf->CONF_VALUE, 'text', ''); ?>
			<?php }?>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary btn-small">Save</button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
			</div>
		</div>
	</div>                            
</div>

  </form>




 